import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    isAPP:false,
    classType:'',
    classTypeSole:'',
    userInfo:'',
    token:'',
    classIdex:0,

  },
  mutations: {
    isAPPShow:function(e,i){
      this.state.isAPP=i
    },

    setClassType:function(e,i){
      this.state.classType=i
    },

    setClassTypeSole:function(e,i){
      this.state.classTypeSole=i
    },
    setUserInfo:function(e,i){
      this.state.userInfo=i.userInfo
      this.state.token=i.token
      
    },

    setClassTypeIndex:function(e,i){
      this.state.classIdex=i
    },

  


  },
  actions: {}
})
